<template>
    <div class="childBox">
        <h2>我是儿子</h2>
        <div>
            <div>{{title}}</div>
            <div>
                <img :src="imgurl" class="movePic">
            </div>
        </div>
    </div>
</template>

<script>
export default {
    props:['title','imgurl']
}
</script>

<style lang="scss">
    .childBox{
        width: 300px;
        height: 300px;
        background-color: springgreen;
        .movePic{
            width: 100px;
        }
    }
    
</style>